package pathfinding;

import com.sun.sgs.app.ManagedReference;

public class AStarTabled extends AStarGrid {
	private static final long serialVersionUID = 1L;

	public AStarTabled(ManagedReference<SpaceTimeReservationTable> tableRef) {
		this.tableRef = tableRef;
	}
	
	ManagedReference<SpaceTimeReservationTable> tableRef;
	
	@Override
	protected boolean isReserved(GridCell c, long timeStart, long timeEnd) {
		return tableRef.get().isReserved(c, timeStart, timeEnd);
	}

}
